package com.swust.exam.pojo;

import java.io.Serializable;

public class Questionbank implements Serializable {
    private Integer bankId;

    private String bankInstruction;
    
    private String bankCreator;

    private static final long serialVersionUID = 1L;

	public Integer getBankId() {
		return bankId;
	}

	public void setBankId(Integer bankId) {
		this.bankId = bankId;
	}

	public String getBankInstruction() {
		return bankInstruction;
	}

	public void setBankInstruction(String bankInstruction) {
		this.bankInstruction = bankInstruction;
	}

	public String getBankCreator() {
		return bankCreator;
	}

	public void setBankCreator(String bankCreator) {
		this.bankCreator = bankCreator;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bankCreator == null) ? 0 : bankCreator.hashCode());
		result = prime * result + ((bankId == null) ? 0 : bankId.hashCode());
		result = prime * result + ((bankInstruction == null) ? 0 : bankInstruction.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Questionbank other = (Questionbank) obj;
		if (bankCreator == null) {
			if (other.bankCreator != null)
				return false;
		} else if (!bankCreator.equals(other.bankCreator))
			return false;
		if (bankId == null) {
			if (other.bankId != null)
				return false;
		} else if (!bankId.equals(other.bankId))
			return false;
		if (bankInstruction == null) {
			if (other.bankInstruction != null)
				return false;
		} else if (!bankInstruction.equals(other.bankInstruction))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Questionbank [bankId=" + bankId + ", bankInstruction=" + bankInstruction + ", bankCreator="
				+ bankCreator + "]";
	}

    
    }